import request from '@/utils/request'

// 查询回复人列表
export function listReplier(query) {
  return request({
    url: '/system/replier/list',
    method: 'get',
    params: query
  })
}

// 查询回复人详细
export function getReplier(id) {
  return request({
    url: '/system/replier/' + id,
    method: 'get'
  })
}

// 新增回复人
export function addReplier(data) {
  return request({
    url: '/system/replier',
    method: 'post',
    data: data
  })
}

// 修改回复人
export function updateReplier(data) {
  return request({
    url: '/system/replier',
    method: 'put',
    data: data
  })
}

// 删除回复人
export function delReplier(id) {
  return request({
    url: '/system/replier/' + id,
    method: 'delete'
  })
}

//回复人下拉框
export function getRepliers() {
  return request({
    url: '/system/replier/list1',
    method: 'get'
  })
}
